/*
 * @Author: your name
 * @Date: 2020-11-19 20:46:25
 * @LastEditTime: 2020-12-13 16:54:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wechat-server\routes\index.js
 */
import Router from "koa-router";
import hotList from "./weibo/hotList";
import topicList from "./weibo/topicList";
import cardExtend from "./weibo/cardExtend";
import hotComment from "./weibo/hotComment";
import hotCards from "./weibo/hotCards";
import zhHotList from "./zhihu/hotList";
import zhQuestion from "./zhihu/questionAnswers";
import zhComments from "./zhihu/hotComments";
import xqRealtime from "./xueqiu/realtimeIndex";
import xqHotList from "./xueqiu/hotList";
const router = Router();

router.use(hotList.routes(), hotList.allowedMethods());
router.use(topicList.routes(), topicList.allowedMethods());
router.use(cardExtend.routes(), cardExtend.allowedMethods());
router.use(hotComment.routes(), hotComment.allowedMethods());
router.use(hotCards.routes(), hotCards.allowedMethods());

router.use(zhHotList.routes(), zhHotList.allowedMethods());
router.use(zhQuestion.routes(), zhQuestion.allowedMethods());
router.use(zhComments.routes(), zhComments.allowedMethods());

router.use(xqRealtime.routes(), xqRealtime.allowedMethods());
router.use(xqHotList.routes(), xqHotList.allowedMethods());

export default router;
